const mongoose = require('mongoose')
const Schema = mongoose.Schema
const userType = {
    username: String,
    password: String,
    gender: Number,   //性别 0 1 2
    introduction: String,
    avatar: String,
    role: Number   //管理员 1，编辑2
}

const userModel = mongoose.model('user', new Schema(userType))

module.exports = userModel 
